#ifndef SOCKETSYNC_H
#define SOCKETSYNC_H

#include <QObject>

class SocketSyncPrivate;
class QUdpSocket;

class SocketSync : public QObject
{
    Q_OBJECT
public:
    explicit SocketSync(quint16 port = 0, QObject *parent = 0);

    int sendUdpMessage(QString msg, QString ip, quint16 port, QString &result);

    QUdpSocket* udpsocket();
    ~SocketSync();

private:
    SocketSyncPrivate *d;
    
};

#endif // SOCKETSYNC_H
